<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" xmlns:t="http://myfaces.apache.org/tomahawk"
	template="/pages/template/main-layout-nologin.xhtml">

	<ui:define name="left">
		<h:form id="loginForm" prependId="false">
			<p:growl id="messages" life="3000" />

			<p:panel id="pnlLogin" header="#{msgs.login_title}" width="100%">
				<h:panelGrid columns="2" cellpadding="5" columnClasses="width30,width70">
					<h:outputLabel for="username" value="#{msgs.login_user}" />
					<p:inputText id="username" value="#{loginBean.user.userName}" label="#{msgs.login_user}"
						style="validator:checkNotNull(#{msgs.login_user}));width:100%;" maxlength="40" required="true">
					</p:inputText>

					<h:outputLabel for="password" value="#{msgs.login_password}" />
					<h:inputSecret id="password" value="#{loginBean.user.userPwd}" required="true"
						label="#{msgs.login_password}"
						style="validator:checkNotNull(#{msgs.login_password});width:100%;submitButton:btnLogin" />

					<h:panelGroup />
					<p:commandButton id="btnLogin" icon="ui-icon-person" value="#{msgs.button_login}" ajax="false"
						process="pnlLogin" onmousedown="return validator('loginForm')" action="#{loginBean.loginAction}"
						autoSubmit="true" global="false">
					</p:commandButton>
				</h:panelGrid>
			</p:panel>

			<p />
			<p:calendar id="calen" mode="inline" locale="#{langSelectorBean.myLocale.language}"
				showButtonPanel="true" navigator="true" style="width:100%" />
			<p />

		</h:form>
	</ui:define>

	<ui:define name="content">
		<ui:include src="/pages/loginMainPage.xhtml" />
	</ui:define>
</ui:composition>